﻿using Framework;

namespace Game
{
    public class SceneObjectIdleActionable : IBTreeActionable<SceneObjectBTContext>
    {
        public void OnStart(SceneObjectBTContext context)
        {
            context.sceneObject.GetComponent<SceneObjectActionComponent>().SetTrigger(SceneObjectActions.Idle);
        }

        public void OnEnd(SceneObjectBTContext context)
        {
        }

        public TaskStatus Update(SceneObjectBTContext context)
        {
            return TaskStatus.Running;
        }
    }
}